#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2020 crane <crane@crane-pc>
#
# Distributed under terms of the MIT license.

"""

"""

class Solution(object):
    def countOdds(self, low, high):
        num = (high - low + 1) // 2

        if (high - low) % 2 == 0 and low % 2 == 1:
            num += 1

        return num


def test():
    s = Solution()
    print(s.countOdds(1, 2))
    print(s.countOdds(1, 3))
    print(s.countOdds(1, 4))
    print(s.countOdds(1, 5))
    print(s.countOdds(1, -3))

def main():
    print("start main")
    test()

if __name__ == "__main__":
    main()
